{%include file="m.index.header.tpl.php"%}
<!--主体部分-->
<div class="container" style="margin-top:70px;">
  <div class="row" style="margin-top:10px;">
   <form name="myform" action="" method="get" >
    <div class="col-sm-12 distance hierarchy" >
      <div class="form-group">
        <label for="" class="col-sm-2 control-label">学期:</label>
        <div class="col-sm-10">
          <select class="form-control" name="semester_id">
			  {%foreach  from=$semester_lists  key=key  item=value%} 
						<option value="{%$value.semester_id%}" {%if $value.semester_id eq $semester_id%}selected{%/if%}> {%$value.semester_xname%}第{%$value.semester_name%}学期</option>
			   {%/foreach%}
		  </select> 
        </div>
      </div>
    </div>
    <div class="col-xs-12 distance hierarchy2">
      <div class="form-group  text-center" style="padding-top:0px;">
		<input type="hidden" name = 'staff_id' value="{%$staff_id%}">
		<input type="hidden" name = 'a' value="teacher.teachlist">
        <button type="submit" class="btn btn-success absolutely ">搜索</button>
      </div>
    </div>
    </form>
  </div>

  <div class="row content-top"> 
    <!--  <h5>总计44条信息</h5>-->
    <table class="table table-striped table-bordered text-center"  id="middles">
      <tr>
        <td>学年</td>
        <td>{%$semester_data.semester_xname%}</td>
      </tr>
      <tr>
        <td>学期</td>
        <td>{%$semester_data.semester_name%}</td>
      </tr>
      <tr>
        <td>任职情况</td>
        <td>{%$staff.department_data%} ， {%$staff.position_data%}</td>
      </tr>
      <tr>
        <td>任课信息</td>
        <td>
			{%foreach from=$staff.subject_data key=key item=sss%}

				<p>所教学科：{%$sss.subject_name%} ， 班级：{%$sss.class_name%}</p>

			{%/foreach%}
	  </td>
      </tr>
      <tr>
        <td>教学成绩</td>
        <td><p>期中考</p>
			 <!--{%$staff.subject_data%}，{%$staff.class_data%}，平均分：分，级排名：{%$staff.score_data%}<br/>
			
			 <p>期末考</p>
			 {%$staff.subject_data%}，{%$staff.class_data%}，平均分：分，级排名：{%$staff.score_data%}<br/>
			-->
	  </td>
      </tr>
      <tr>
        <td>课时</td>
        <td>
			周课时：{%$staff.hour_data%}<br/>
		   实际月课时：
		   {%foreach from=$staff.month item=value%}
		   {%$value%},
		    {%/foreach%}
		<br/>
		 学期总课时：{%$staff.semester_count%}
		</td>
      </tr>
      <tr>
        <td>个人获奖</td>
        <td>
			{%if !$staff.award_data%}无{%else%}
			{%foreach from=$staff.award_data key=key item=achieve%}
			<p>{%$achieve%}</p>
			{%/foreach%}
			{%/if%}
		</td>
      </tr>
      <tr>
        <td>年度考核</td>
        <td>
			{%if $staff.assess_data=='1'%}优秀{%elseif $staff.assess_data=='2'%}合格{%elseif $staff.assess_data=='3'%}不合格{%/if%}
		</td>
      </tr>
  
      
    </table>
  </div>
</div>
<!--container  end--> 
<!--主体部分  end--> 
{%include file="m.index.footer.tpl.php"%}